package com.hdw.common.constant;

public enum  CommonResultConstant {

    SUCCESS("success",200),ERROR("error",501);

    private String name;
    private Integer code;

    private CommonResultConstant(String name,Integer code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return this.name;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
